/*
 * @Author: only
 * @Date: 2025-03-06 16:56:15
 * @LastEditors: sueRimn
 * @LastEditTime: 2025-03-10 17:27:04
 */
import request from "@/utils/request";

// 查询抽调记录列表
export function vendorRecordsList(data) {
  return request({
    url: "/vendor/sampling/records/list",
    method: "post",
    data: data,
  });
}

// 获取待抽调记录的企业列表
export function vendorRecordsGetWaitList(data) {
  return request({
    url: "/vendor/sampling/records/get_wait_list",
    method: "post",
    data: data,
  });
}

// 新增抽调记录
export function vendorRecordsAdd(data) {
  return request({
    url: "/vendor/sampling/records/add",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 获取详细信息
export function vendorRecordsGetInfo(data) {
  return request({
    url: "/vendor/sampling/records/get_info",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 科室负责人审核
export function vendorRecordsResponsibilityAudit(data) {
  return request({
    url: "/vendor/sampling/records/responsibility_audit",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 更新
export function vendorRecordsUpdate(data) {
  return request({
    url: "/vendor/sampling/records/update",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 经办人审核 （提交审核/撤回）
export function vendorRecordsOperatorAudit(data) {
  return request({
    url: "/vendor/sampling/records/operator_audit",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}

// 更新
export function vendorRequirementsUpdate(data) {
  return request({
    url: "/vendor/sampling/requirements/update",
    method: "post",
    data: data,
    ext: {
      loading: true,
    },
  });
}
